﻿<html dir="LTR"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"><title>FTPClient.Connect Method</title><xml></xml><link rel="stylesheet" type="text/css" href="MSDN.css"></head><body id="bodyID" class="dtBODY"><div id="nsbanner"><div id="bannerrow1"><table class="bannerparthead" cellspacing="0"><tr id="hdr"><td class="runninghead">An NDoc Documented Class Library</td><td class="product"></td></tr></table></div><div id="TitleRow"><h1 class="dtH1">FTPClient.Connect Method </h1></div></div><div id="nstext"><p>Connect to the FTP server.</p><div class="syntax">public virtual <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemVoidClassTopic.htm">void</a> Connect();</div><h4 class="dtH4">Remarks</h4><p>
            The <a href="EnterpriseDT.Net.Ftp.FTPClient.RemoteHost.html">RemoteHost</a> property must be set prior to calling this method.
            This method must be called before <a href="EnterpriseDT.Net.Ftp.FTPClient.Login.html">Login</a> or <a href="EnterpriseDT.Net.Ftp.FTPClient.User.html">User</a>
            is called.
            </p><p>
            This method will throw an <code>FTPException</code> if the client is already connected to the server.
            </p><h4 class="dtH4">See Also</h4><p><a href="EnterpriseDT.Net.Ftp.FTPClient.html">FTPClient Class</a> | <a href="EnterpriseDT.Net.Ftp.html">EnterpriseDT.Net.Ftp Namespace</a></p><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"><param name="Keyword" value="Connect method"><param name="Keyword" value="Connect method, FTPClient class"><param name="Keyword" value="FTPClient.Connect method"></object></div></body></html>